﻿using G.Model;
using G.Model.Runtime;
using System;
using GameRuntimeLibrary.Model.Runtime.Actions;
using G.Runtime;
using G.Runtime.Actions;

namespace G.Runtime
{
    public class GameTask : HasGameSpace
    {
        private readonly GameTaskDef _GameTaskDef;
        private readonly GameSpace _Game;

        public GameTask(GameTaskDef pGameTaskDef, GameSpace pGame)
        {
            _Game = pGame;
            _GameTaskDef = pGameTaskDef;
        }

        public GameTaskDef Def
        {
            get { return _GameTaskDef; }
        }

        public GameSpace Game
        {
            get { return _Game; }
        }
        
        public override string ToString()
        {
            return _GameTaskDef.ToString();
        }

    }
}
